<?php

namespace core\system\AuthInterceptor;

use Exception;

class AuthInterceptor {

    public static $authen = false;
    public static $namespace;

    public static function callAuthen() {
        try {
            if (self::$authen) {
                return (!call_user_func(array(self::$namespace, "authentic"))) ? false : true;
            }
            return true;
        } catch (Exception $exc) {
            
        }
    }

}
